package com.adv.ems.manager;

import com.adv.ems.db.entity.EnergyDataCumulateDO;

import java.util.Date;
import java.util.List;

public interface EnergyDataCumulateManager {
    List<EnergyDataCumulateDO> getByPointIdAndColDate(Long collectPointId, Date colDate);

    Boolean updateColData(Long id, Date colDate, Double value);

    Boolean deleteColData(Long id, Date colDate);

    boolean insertData(EnergyDataCumulateDO record);

    List<EnergyDataCumulateDO> getAllDataByPonitTime(Long pointId, Date start, Date end);

    EnergyDataCumulateDO getTimeBeforeOneData(Long pointId, Date start);

    void updateIncreaseValue(Long id, Date colDate, Double increaseRealValue, Double increaseStandValue);

    List<EnergyDataCumulateDO> selectData(Date startDate, Date endDate, List<Long> pointIds);
}
